package cn.tedu.spring.scope;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TextOrder {
    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext
                ("cn.tedu.spring.scope");
        Order order1 = ctx.getBean(Order.class);
        Order order2 = ctx.getBean(Order.class);
        System.out.println("order1="+order1);
        System.out.println("order2="+order2);

    }
}
